#include<bits/stdc++.h>
using namespace std;
#define int long long
signed main() {
	double a, b, h;
	cin >> a >> b >> h;
	cout << fixed << setprecision(1) << (a + b)*h  / 2;
	return 0;
}
